+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
+2001-10-18 Matthias Clasen <matthiasc@poet.de>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
+ Don't restrict the width of the spinbutton entry field
+ to 10 digits. (#58681)
+
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
gint width;
gint w;
gint string_len;
+ gint max_string_len;
gint digit_width;
context = gtk_widget_get_pango_context (widget);
/* Get max of MIN_SPIN_BUTTON_WIDTH, size of upper, size of lower */
width = MIN_SPIN_BUTTON_WIDTH;
+ max_string_len = MAX (10, compute_double_length (1e9 * spin_button->adjustment->step_increment,
+ spin_button->digits));
string_len = compute_double_length (spin_button->adjustment->upper,
spin_button->digits);
- w = MIN (string_len, 10) * digit_width;
+ w = MIN (string_len, max_string_len) * digit_width;
width = MAX (width, w);
string_len = compute_double_length (spin_button->adjustment->lower,
spin_button->digits);
- w = MIN (string_len, 10) * digit_width;
+ w = MIN (string_len, max_string_len) * digit_width;
width = MAX (width, w);
requisition->width = width + ARROW_SIZE + 2 * widget->style->xthickness;